package leihua.crm.workbench.service.impl;

import leihua.crm.workbench.domain.ClueActivityRelation;
import leihua.crm.workbench.mapper.ClueActivityRelationMapper;
import leihua.crm.workbench.service.ClueActivityRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author leiHua
 * @Date 2022/10/20 22:44
 */
@Service
public class ClueActivityRelationServiceImpl implements ClueActivityRelationService {
    @Autowired
    ClueActivityRelationMapper clueActivityRelationMapper;
    @Override
    public int saveCreateClueActivityRelationByList(List<ClueActivityRelation> list) {
        return clueActivityRelationMapper.insertClueActivityRelationByList(list);
    }

    @Override
    public int deleteClueActivityRelationByActivityIdAndClueId(ClueActivityRelation clueActivityRelation) {
        return clueActivityRelationMapper.deleteClueActivityRelationByActivityIdAndClueId(clueActivityRelation);
    }
}
